<link rel="stylesheet" type="text/css" href="{[$Think.config.__CSS__]}/register.css"/>
<script type="text/javascript" src="{[$Think.config.__JS__]}/controllers/userCtrl.js"></script>
<div  class="register" ng-app="user"   ng-controller="RegisterCtrl">
	<form  ng-submit="register('__CONTROLLER__/add')">
		<div>
		<input type="text" ng-model="user.name" placeholder="用户名" autofocus="true"/>
		</div>
		<div>
			<input type="email" ng-model="user.email"  placeholder="邮箱"/>
		</div>
		<div>
			<input type="password" ng-model="user.password"  placeholder="密码"/>
		</div>
		<div>
			<input type="password" ng-model="user.repassword"  placeholder="确认密码"/>
		</div>
		<div><p>{{error_msg.msg}}<p></div>
		<div>
			<button type="submit" >注册</button>
			<button type="button" ng-click="reset()">重置</button>
		</div>

	</form>
   	
</div>